package ysm.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import ysm.entity.Seminar;
import ysm.mapper.SeminarMapper;

@Service
public class SeminarService {
	
	@Autowired
	private SeminarMapper seminarMapper;
	
	public List loadAllSeminar() {
		return seminarMapper.loadAllSeminar();
	}
	
    public void deleteByPrimaryKey(Integer id) {
    	seminarMapper.deleteByPrimaryKey(id);
    }

    public void insert(Seminar record) {
    	seminarMapper.insert(record);
    }

    public void insertSelective(Seminar record) {
    	seminarMapper.insertSelective(record);
    }

    public Seminar selectByPrimaryKey(Integer id) {
    	return seminarMapper.selectByPrimaryKey(id);
    }

    public void updateByPrimaryKeySelective(Seminar record) {
    	seminarMapper.updateByPrimaryKeySelective(record);
    }

    public void updateByPrimaryKey(Seminar record) {
    	seminarMapper.updateByPrimaryKey(record);
    }
}
